﻿using System;
using System.Linq.Expressions;

namespace Fabrication
{
    internal class ChildBuilderOptions<TParent, TChild> : IChildBuilderOptions<TParent, TChild>
    {
        private readonly Expression<Func<TParent, TChild>> member;
        public IBuilderOptions<TParent> BuilderOptions { get; private set; }

        public ChildBuilderOptions(IBuilderOptions<TParent> builderOptions, Expression<Func<TParent, TChild>> member)
        {
            this.member = member;
            BuilderOptions = builderOptions;
        }
    }
}